package org.dormi.learn.primitive;

import java.math.BigDecimal;

/**
 * 度量 = 单位 + 数字, 如 30kg
 *
 * @author : dormi330
 * @version : 1.0
 */
public class Measure extends _Primitive_ {

    /** 度量单位 */
    private MeasureUnitEnum unit;

    /** 度量值 */
    private BigDecimal quantity;

    /* === set/get === */
    /* === set/get === */
    /* === set/get === */

    public MeasureUnitEnum getUnit() {
        return unit;
    }

    public void setUnit(MeasureUnitEnum unit) {
        this.unit = unit;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }
}
